.class Lcom/kwad/sdk/core/h/d$1;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/kwad/sdk/core/h/d$a;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/kwad/sdk/core/h/d;->loadSplashScreenAd(Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$SplashScreenAdListener;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/kwad/sdk/api/KsScene;

.field final synthetic b:Lcom/kwad/sdk/api/KsLoadManager$SplashScreenAdListener;

.field final synthetic c:Lcom/kwad/sdk/core/h/d;


# direct methods
.method constructor <init>(Lcom/kwad/sdk/core/h/d;Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/api/KsLoadManager$SplashScreenAdListener;)V
    .locals 0

    iput-object p1, p0, Lcom/kwad/sdk/core/h/d$1;->c:Lcom/kwad/sdk/core/h/d;

    iput-object p2, p0, Lcom/kwad/sdk/core/h/d$1;->a:Lcom/kwad/sdk/api/KsScene;

    iput-object p3, p0, Lcom/kwad/sdk/core/h/d$1;->b:Lcom/kwad/sdk/api/KsLoadManager$SplashScreenAdListener;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(ILjava/lang/String;)V
    .locals 2

    invoke-static {}, Lcom/kwad/sdk/core/h/d;->a()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/kwad/sdk/core/h/d$1$1;

    invoke-direct {v1, p0, p1, p2}, Lcom/kwad/sdk/core/h/d$1$1;-><init>(Lcom/kwad/sdk/core/h/d$1;ILjava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public a(Lcom/kwad/sdk/core/response/model/AdResultData;)V
    .locals 3
    .param p1    # Lcom/kwad/sdk/core/response/model/AdResultData;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    iget-object v0, p1, Lcom/kwad/sdk/core/response/model/AdResultData;->adTemplateList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    new-instance v0, Lcom/kwad/sdk/splashscreen/a;

    iget-object v1, p0, Lcom/kwad/sdk/core/h/d$1;->a:Lcom/kwad/sdk/api/KsScene;

    invoke-direct {v0, v1, p1}, Lcom/kwad/sdk/splashscreen/a;-><init>(Lcom/kwad/sdk/api/KsScene;Lcom/kwad/sdk/core/response/model/AdResultData;)V

    invoke-static {}, Lcom/kwad/sdk/core/preload/SplashPreloadManager;->a()Lcom/kwad/sdk/core/preload/SplashPreloadManager;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/kwad/sdk/core/preload/SplashPreloadManager;->b(Lcom/kwad/sdk/core/response/model/AdResultData;)Z

    move-result p1

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onSuccess "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "AdRequestManager"

    invoke-static {v2, v1}, Lcom/kwad/sdk/core/d/b;->d(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p1, :cond_0

    invoke-static {}, Lcom/kwad/sdk/core/h/d;->a()Landroid/os/Handler;

    move-result-object p1

    new-instance v1, Lcom/kwad/sdk/core/h/d$1$2;

    invoke-direct {v1, p0, v0}, Lcom/kwad/sdk/core/h/d$1$2;-><init>(Lcom/kwad/sdk/core/h/d$1;Lcom/kwad/sdk/api/KsSplashScreenAd;)V

    invoke-virtual {p1, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    :cond_0
    sget-object p1, Lcom/kwad/sdk/core/network/e;->c:Lcom/kwad/sdk/core/network/e;

    iget v0, p1, Lcom/kwad/sdk/core/network/e;->g:I

    iget-object p1, p1, Lcom/kwad/sdk/core/network/e;->h:Ljava/lang/String;

    invoke-virtual {p0, v0, p1}, Lcom/kwad/sdk/core/h/d$1;->a(ILjava/lang/String;)V

    :goto_0
    return-void
.end method
